package com.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.bean.WdApartmentLayout;
import com.demo.bean.WdChangeType;
import com.demo.dao.WdApartmentLayoutMapper;
import com.demo.dao.WdChangeTypeMapper;
import com.demo.service.HouseTypeService;

@Service
public class HouseTypeServiceImpl implements HouseTypeService {
	@Autowired
	private WdApartmentLayoutMapper dao;

	public List<HouseTypeService> getList(WdApartmentLayout bean) {
		return dao.getList(bean);
	}

	public int insertSelective(WdApartmentLayout bean) {
		return dao.insertSelective(bean);
	}

	public int deleteSelective(String apartmentLayoutId) {
		return dao.deleteByPrimaryKey(apartmentLayoutId);
	}

	public WdApartmentLayout getById(String apartmentLayoutId) {
		return dao.selectByPrimaryKey(apartmentLayoutId);
	}

	public int updateApartmentLayout(WdApartmentLayout bean) {
		return dao.updateByPrimaryKeySelective(bean);
	}

}